<?php echo \think\facade\View::fetch("public/header"); ?>

    <div id="right">
        <div id="content">
            <div id="breadcrumb">
                <a href="/admin/index/index">首页</a> &gt;
                <a href="/admin/category/index/">分类管理</a> &gt;
                分类列表
            </div>

            <div id="choose_div">
<!--                <button id="all" class="btn">全选</button>-->
<!--                <a id="multi_delete" href="javascript:void(0);">删除选中任务</a>-->

                <a class="add" href="/admin/category/add/">增加分类</a>
            </div>

            <table class="list">
                <tbody>
                <tr>
                    <th></th>
                    <th>ID</th>
                    <th>标题</th>
                    <th>描述</th>
                    <th>增加时间</th>
                    <th>修改时间</th>
                    <th>操作</th>
                </tr>
                <?php foreach ($categoryList as $item): ?>
                    <tr>
                        <td><input type="checkbox" class="task-checkbox" name="TaskId[]" value=""></td>
                        <td><?php echo $item['category_id']; ?></td>
                        <td><?php echo $item['category_name']; ?></td>
                        <td><?php echo $item['category_desc']; ?></td>
                        <td><?php echo date("Y-m-d H:i:s", $item['add_time']); ?></td>
                        <td><?php echo date("Y-m-d H:i:s", $item['update_time']); ?></td>
                        <td>
                            <a class="update_ing" href="/admin/category/edit/category_id/<?php echo $item['category_id']; ?>/">编辑</a>
                            <a class="update_ing" href="/admin/category/delete/category_id/<?php echo $item['category_id']; ?>/">删除</a>
                        </td>
                    </tr>
                <?php endforeach; ?>
                </tbody>
            </table>
        </div>
    </div>

<?php echo \think\facade\View::fetch("public/footer"); ?>